﻿using Microsoft.EntityFrameworkCore;
using ProductDemo.Infrastructure;

namespace ProductDemo.Extensions
{
    public static class DIExtensions
    {
        public static void AddApplicationDbContext(this IServiceCollection services)
        {
            services.AddDbContext<ApplicationDbContext>(options =>
                options.UseSqlite("Data Source = products.db"));
        }
    }
}
